CMAKE_MINIMUM_REQUIRED(VERSION 3.0)

include_directories(${COMN_DIR}/include)

link_directories(${PROJECT_ROOT}/lib)

include_directories(${FFMPEG_INCLUDE_DIR})
link_directories(${FFMPEG_LIBRARY_DIR})

include_directories(${PROJECT_ROOT}/FfMediaInfo/include)

include_directories(${PROJECT_ROOT}/UniMediaCore/UniMediaCore/include)
include_directories(${PROJECT_ROOT}/UniMediaCore/UniMediaStore/include)




if (MSVC)
	SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /SAFESEH:NO")
else()
endif()

include_directories(util)
aux_source_directory(util SOURCES)


aux_source_directory(. SOURCES)
add_executable(ffconv ${SOURCES})


target_link_libraries(ffconv
	debug comnd optimized comn
	FfMediaInfo
	UniMediaCore
	${FFMPEG_LIBRARIES}
	${LIB_PLATFORM}
	)


install(TARGETS ffconv DESTINATION .)